/**
 * @project Devkits
 * @file MainGui.cpp
 * @author rui.liang (rui.liang@ruhnix.com)
 * @date 2022/11/29 01:32:20
 */

#include "MainGui.h"

MainGui::Ptr MainGui::create() {
    auto window = std::make_shared<MainWindow>();
    if (window) {
        MainGui::Ptr object(new MainGui(window));
        return object;
    } else {
        return nullptr;
    }
}

int MainGui::exec(QApplication &app) {
    m_window->show();
    return app.exec();
}
